package com.java.oop;

class Outer{
    static class Inner01{
        public void say(){
            System.out.println(this);
            //System.out.println(Outer.this);
        }
    }
    class Inner02{
        public void say(){
            System.out.println(this);
            System.out.println(Outer.this);
        }
    }
    void doSomeThing(){
        class Inner03{}
        Thread t=new Thread(){
            @Override
            public void run() {
                super.run();
            }
        };
    }
}

public class InnerTests {
    public static void main(String[] args) {
        //静态内部类对象的构建
        Outer.Inner01 o1=new Outer.Inner01();
        //实例内部类对象的构建
        Outer.Inner02 o2=new Outer().new Inner02();
    }
}
